import {createApp} from 'vue'
import App from './App.vue'

// pinia
import {setupStore} from '@/store'

// 路由
import router from './router'

import '@/assets/css/base.less'
import '@/assets/css/common.less'

// 引入ele-plus
// import ElePlus from "element-plus"
// import 'element-plus/dist/index.css'

import {ElMenu} from 'element-plus'
import {ElMenuItem} from 'element-plus'
import {ElSubMenu} from 'element-plus'

import SvgIcon from '@c/SvgIcon/index.vue'

import StorageHandle from '@/utils/storageTime'

const storage = new StorageHandle({
  mode: 'localStorage',
  prefix: 'project'
})

const app = createApp(App)


app.config.globalProperties.$storage = storage

// app.use(ElePlus)

app.use(ElMenu)
app.use(ElMenuItem)
app.use(ElSubMenu)

app.component('SvgIcon', SvgIcon)

setupStore(app)
app.use(router)
app.mount('#app')
